package com.gitee.starblues.grape.repository.databases.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gitee.starblues.grape.repository.databases.entity.RebateAccountLogPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RebateAccountLogMapper extends BaseMapper<RebateAccountLogPo> {
    int deleteByPrimaryKey(Integer id);

    int insert(RebateAccountLogPo record);

    int insertSelective(RebateAccountLogPo record);

    RebateAccountLogPo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RebateAccountLogPo record);

    int updateByPrimaryKey(RebateAccountLogPo record);
    
    List<RebateAccountLogPo> selectRebateAccountLogsByUserId(@Param("userId")String userId);

    List<RebateAccountLogPo> selectRebateAccountLogsByUserName(@Param("userName")String userName);
}